package visualcbir.decorators;

import java.awt.Dimension;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.JTextField;
import javax.swing.event.ChangeListener;
import visualcbir.PnlView;
import visualcbir.View;

/**
 *
 * @author sheila
 */
public class FunOptions extends Functionality{
    private JPanel pnl;
    private JLabel lbl;
    private JTextField txt;
    
    double zoomScale;

    public FunOptions(View oIView, PnlView oPnlView){
        super(oIView, oPnlView);
        initComponents();
    }

    public void initComponents(){
        this.pnl=new JPanel();
        this.txt=new JTextField("20");
        this.lbl=new JLabel("Número de Images");
        this.pnl.setLayout(new java.awt.BorderLayout());

        this.txt.setColumns(5);
       
        this.pnl.add(lbl, java.awt.BorderLayout.WEST);
        this.pnl.add(txt, java.awt.BorderLayout.CENTER);
    }

    public int getNumImages(){
        System.out.println("O numero de imagens no resultado é"+ txt.getText());
        return Integer.valueOf(txt.getText());
    }
    public void removeAll(){
        this.pnl.removeAll();
    }

    public JPanel getPnl() {
        return pnl;
    }
}
